package com.wym.rbac.mapper;

import com.wym.rbac.domain.Employee;
import com.wym.rbac.domain.query.EmployeeQueryObject;
import com.wym.rbac.domain.vo.LoginInfoVo;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface EmployeeMapper {
    Employee selectById(Long id);
    List<Employee> selectAll();
    int deleteById(Long id);
    int insert(Employee employee);
    int updateById(Employee employee);
    int updateStateById(@Param("id") Long id, @Param("admin") boolean admin);
    List<Employee> queryForList(EmployeeQueryObject qo);
    Employee login(LoginInfoVo loginInfoVo);
    void insertRelation(@Param("employeeId") Long employeeId,@Param("roleId") Long roleId);
    void deleteRelation(Long employeeId);
}
